home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows Expert
/
Windows Expert.iso
/
program
/
tpwpxeng.zip
/
RECLAST.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-07-22
|
493b
|
26 lines
program RecLast;
uses PXEngine, WinCrt;
const TableName = 'Table';
var PxErr: Integer;
TblHandle: TableHandle;
procedure PX(Code : integer);
begin
writeln(PXErrMsg(Code));
end;
begin
PX(PXWinInit('MyApp', pxShared));
PX(PXTblOpen(TableName, TblHandle, 0, False));
(* Go to the last record in the table *)
PxErr := PXRecLast(TblHandle);
if PxErr <> PxSuccess then
Writeln(PxErrMsg(PxErr));
PX(PXTblClose(TblHandle));
PX(PXExit);
end.